package com.joolun.script.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;

/**
 * 通用配置
 *
 * @author zkk
 * @date 2022-01-12 15:55:36
 */
@Data
@TableName("common_config")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "通用配置")
public class CommonConfig extends Model<CommonConfig> {
    private static final long serialVersionUID=1L;

    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "")
    private String id;
    /**
     * 模块名称
     */
    @ApiModelProperty(value = "模块名称")
    private String module;
    /**
     * KEY 名称
     */
    @ApiModelProperty(value = "KEY 名称")
    private String key;
    /**
     * 属性值
     */
    @ApiModelProperty(value = "属性值")
    private String value;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String remark;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * APPID
     */
    @NotNull(message = "APPID不能为空")
    @ApiModelProperty(value = "APPID")
    private String appId;

    public static class CommonConfigField {
    
        /**
         * 
         */
        public static String ID = "id";

    
        /**
         * 模块名称
         */
        public static String MODULE = "module";

    
        /**
         * KEY 名称
         */
        public static String KEY = "key";

    
        /**
         * 属性值
         */
        public static String VALUE = "value";

    
        /**
         * 描述
         */
        public static String REMARK = "remark";

    
        /**
         * 创建时间
         */
        public static String CREATE_TIME = "create_time";

    
        /**
         * APPID
         */
        public static String APP_ID = "app_id";

    
    }

}
